package com.example.ytyproject.service;

import com.example.ytyproject.entity.Role;
import com.example.ytyproject.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ytyproject.entity.vo.R;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yg
 * @since 2023-10-27
 */
public interface UserService extends IService<User> {

    User findUsername(String name);

    R listByPage(User user);

    void addUser(User user);

    User findByUserName(String username);

    void updateUser(User user);

    R login(User user);

    void roleAllocation(List<Role> roles);
}
